package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;
	
	public class StartCommand extends SuperCommand
	{
		public function StartCommand()
		{
			socketEvent = SocketEventID.START_UPDATE;
			viewEvent = ViewEventID.START_UPDATE;
		}
		override public function success(e:UnoEvent):void
		{
			var table:Object = db.tableList[e.data.tableID];
			table.start = "1";
			if(db.loginUser.table!=""&& db.loginUser.table == e.data.tableID)
			{
				table["cardNum"] = e.data.cardNum;
				table["config"] = e.data.config;
				table["currentSeatID"] = e.data.currentSeatID;
				table["direction"] = e.data.direction;
			}
		}
	}
}